package com.homedo.odin.solution.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 * @author: zhaoxudong
 * @date: 2018/3/6 18:16
 * @Description:
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@ApiModel(description = "访客信息")
public class Visitor extends BaseBean {

    @ApiModelProperty("访客id")
    private Integer visitorId;
    @ApiModelProperty("访客ip")
    private String visitorIp;
    @ApiModelProperty("访客昵称")
    private String nickName;
    @ApiModelProperty("访问时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date visitTime;
    @ApiModelProperty("访客头像")
    private String userAvatar;
}
